package android.video.online.ui.user.order;

import android.video.online.core.BasicView;
import android.video.online.core.HttpCallback;
import android.video.online.http.ServiceManager;
import android.video.online.widget.LoadingView;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by Jay on 2017/8/13.
 */

public class ShoppingCarPresenter implements ShoppingCarContract.Presenter {
    private ShoppingCarContract.View view;

    public ShoppingCarPresenter(ShoppingCarContract.View view) {
        this.view = view;
    }

    @Override
    public BasicView getView() {
        return view;
    }

    @Override
    public void loadAllOrder(LoadingView mLoadingView) {
        ServiceManager.getInstance().loadAllOrder(mLoadingView, new HttpCallback(){
            @Override
            protected void onFail(Call call, Object... objects) {

            }

            @Override
            protected void onSuccess(Call call, Response response, String result, Object... objects) {

            }
        });
    }
}
